/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 身份证审核Entity
 * @author huoyan403
 * @version 2016-10-29
 */
public class TbUserVerify extends DataEntity<TbUserVerify> {
	
	private static final long serialVersionUID = 1L;
	private Integer uid;		// uid
	private String idCard;		// id_card
	private String idCardFrontUrl;		// id_card_front_url
	private String idCardBackUrl;		// id_card_back_url
	private String auditorState;		// 审核状态
	private Date createTime;		// create_time
	private Date updateTime;		// update_time
	private Integer isDelete;		// 0是未删除的，1是删除的
	private String name;//名字
	private String logName;//登陆名
	private String beginDate;
	private String endDate;
	private String address;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

	public TbUserVerify() {
		super();
	}

	public TbUserVerify(String id){
		super(id);
	}

	@NotNull(message="uid不能为空")
	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	@Length(min=0, max=20, message="id_card长度必须介于 0 和 20 之间")
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	
	@Length(min=0, max=255, message="id_card_front_url长度必须介于 0 和 255 之间")
	public String getIdCardFrontUrl() {
		return idCardFrontUrl;
	}

	public void setIdCardFrontUrl(String idCardFrontUrl) {
		this.idCardFrontUrl = idCardFrontUrl;
	}
	
	@Length(min=0, max=255, message="id_card_back_url长度必须介于 0 和 255 之间")
	public String getIdCardBackUrl() {
		return idCardBackUrl;
	}

	public void setIdCardBackUrl(String idCardBackUrl) {
		this.idCardBackUrl = idCardBackUrl;
	}
	
	@Length(min=0, max=3, message="审核状态长度必须介于 0 和 3 之间")
	public String getAuditorState() {
		return auditorState;
	}

	public void setAuditorState(String auditorState) {
		this.auditorState = auditorState;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	
}